﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CoastalClimbing.Code;

namespace CoastalClimbing.Auth
{
    public partial class PreSales : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                this.BindInfo();
        }

        private void BindInfo()
        {
            grvPreSales.DataSource = DAL.PreSaleSelect();
            grvPreSales.DataBind();
        }

        protected void PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            grvPreSales.PageIndex = e.NewPageIndex;
            this.BindInfo();
        }
    }
}